package com.llh.designpatterns.prototype;

/**
 * <h2>CloneSheep</h2>
 * <p>Description</p>
 * <p>CreatedAt: 2019-11-27 21:40</p>
 * <p><a href="mailto:forever2y_y@163.com">SendMailToMe</a></p>
 *
 * @author llh
 */
public class CloneSheep implements Cloneable {

    public CloneSheep() {
    }

    public CloneSheep(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    private String name;

    private Integer age;

    private CloneSheep son;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public CloneSheep getSon() {
        return son;
    }

    public void setSon(CloneSheep son) {
        this.son = son;
    }
}
